package com.cap7.bean;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
@Component
public class Jeep {

    public Jeep() {
        System.out.println("Jeep ----constructor----");
    }

    @PostConstruct
    public void init() {
        System.out.println("Jeep ----@PostConstruct----初始化");
    }

    @PreDestroy
    public void destory() {
        System.out.println("Jeep ----@PreDestroy----销毁");
    }
}
